﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
#if SILVERLIGHT
using Hydra.Shell.Attributes;
#else
using System.ServiceModel.DomainServices.Server;
using System.ComponentModel.DataAnnotations;
#endif

namespace HydraShellServer.Implementations
{
    [DataContract]
    public class SynchronizationUpdate
    {
        [DataMember, Key]
        public string ID { get; set; }
        [DataMember]
        public string[] Updates { get; set; }
        [Ignore]
        public string SingleValue
        {
            get
            {
                return this.Updates[0];
            }
        }
    }
}
